local channi_viewas = fk.CreateSkill {

  name = "joy__channi_viewas",

  tags = {  },

}



channi_viewas:addEffect("viewas", {
  name = "joy__channi_viewas",
  anim_type = "offensive",
  pattern = "duel",
  card_filter = function(self, player, to_select, selected)
    return Fk:currentRoom():getCardArea(to_select) ~= Player.Equip and #selected < player:getMark("joy__channi")
  end,
  view_as = function(self, player,cards)
    if #cards == 0 then return end
    local card = Fk:cloneCard("duel")
    card:addSubcards(cards)
    card.skillName = "joy__channi"
    return card
  end,
})

return channi_viewas